<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%request.setCharacterEncoding("utf-8"); %>
<jsp:useBean id="boardData" class="com.group.board.BoardData"/>
<jsp:setProperty property="*" name="boardData"/>  <%-- html로 받은 자료를 보드데이터로 일부 넘김 --%>
<jsp:useBean id="boardMgr" class="com.group.board.BoardMgr"/>
<%
String spage = request.getParameter("page");
boolean b = boardMgr.checkPass(boardData.getNum(),boardData.getPass()); //비밀번호 비교

if(b){
	boardMgr.editData(boardData);
	response.sendRedirect("boardlist.jsp?page="+spage);
}else{
	%>
		<script>
			alert("비밀번호 불일치");
			history.back();
		</script>
	<%
}

%>